<legend>
<?php switch($addressType){
	CASE 'Address':
		echo 'Adresse';
		break;
	CASE 'Billingaddress':
		echo 'Adresse de facturation';
		break;
	CASE 'Shippingaddress':
		echo 'Adresse de livraison';
		break;
	}
?>
</legend>
<?php

echo $addressType!='Address'? $this->form->input($addressType.'.firstname', array('placeholder'=>'Pr&eacute;nom','label'=>array('text'=>'Pr&eacute;nom', 'class'=>'control-label')/*,$addressType!='Billingaddress'?'required':''*/)):'';
echo $addressType!='Address'? $this->form->input($addressType.'.lastname', array('placeholder'=>'Nom','label'=>array('text'=>'Nom', 'class'=>'control-label')/*,$addressType!='Billingaddress'?'required':''*/)):'';

echo $this->form->input($addressType.'.line1', array('placeholder'=>'Ligne 1','label'=>array('text'=>'Ligne 1', 'class'=>'control-label')/*,$addressType!='Billingaddress'?'required':''*/));
echo $this->form->input($addressType.'.line2', array('placeholder'=>'Ligne 2','label'=>array('text'=>'Ligne 2', 'class'=>'control-label')));
echo $this->form->input($addressType.'.line3', array('placeholder'=>'Ligne 3','label'=>array('text'=>'Ligne 3', 'class'=>'control-label')));
echo $this->form->input($addressType.'.postcode', array('placeholder'=>'Code Postal','label'=>array('text'=>'Code Postal', 'class'=>'control-label')/*,$addressType!='Billingaddress'?'required':''*/));
echo $this->form->input($addressType.'.city', array('placeholder'=>'Ville','label'=>array('text'=>'Ville', 'class'=>'control-label')/*,$addressType!='Billingaddress'?'required':''*/));
echo $this->form->input($addressType.'.country', array('label'=>array('text'=>'Pays', 'class'=>'control-label')/*,$addressType!='Billingaddress'?'required':''*/));
?>